import request from '@/utils/request'

// 查询可出库存列表
export function listOutInventory(query) {
  return request({
    url: '/system/outInventory/list',
    method: 'get',
    params: query
  })
}

// 查询可出库存详细
export function getOutInventory(id) {
  return request({
    url: '/system/outInventory/' + id,
    method: 'get'
  })
}

// 新增可出库存
export function addOutInventory(data) {
  return request({
    url: '/system/outInventory',
    method: 'post',
    data: data
  })
}

// 修改可出库存
export function updateOutInventory(data) {
  return request({
    url: '/system/outInventory',
    method: 'put',
    data: data
  })
}

// 删除可出库存
export function delOutInventory(id) {
  return request({
    url: '/system/outInventory/' + id,
    method: 'delete'
  })
}
